package cn.xmkeshe.front.impl;

import cn.xmkeshe.dao.IOrderDeDao;
import cn.xmkeshe.front.IOrderDeServiceFront;
import cn.xmkeshe.model.OrderDe;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IOrderDeServiceFrontImpl implements IOrderDeServiceFront{

  @Resource
  private IOrderDeDao iOrderDeDao;

  @Override
  public List<OrderDe> findAll(String cuid) {
    return iOrderDeDao.findAll(cuid);
  }

  @Override
  public boolean add(OrderDe orderDe) {
    return iOrderDeDao.doCreate(orderDe);
  }

  @Override
  public boolean comment(OrderDe orderDe) {
    return iOrderDeDao.comment(orderDe);
  }
}
